/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlEditProduct.java
 *
 * Created on 14 ม.ค. 2553, 14:02:14
 */

package Inventory;

/**
 *
 * @author Administrator
 */
public class PnlEditProduct extends javax.swing.JPanel {

    /** Creates new form PnlEditProduct */
    public PnlEditProduct() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHeadEditPro = new javax.swing.JPanel();
        lblHeadEditPro = new javax.swing.JLabel();
        btnProEditSave = new javax.swing.JButton();
        btnProEditCancel = new javax.swing.JButton();
        btnProEditDel = new javax.swing.JButton();
        btnProPrint = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        lblDTCode = new javax.swing.JLabel();
        cmbDTCode = new javax.swing.JComboBox();
        txtProExp = new javax.swing.JTextField();
        lblProExp = new javax.swing.JLabel();
        lblSProName = new javax.swing.JLabel();
        lblProCode = new javax.swing.JLabel();
        txtProCode = new javax.swing.JTextField();
        lblProPrice = new javax.swing.JLabel();
        txtProPrice = new javax.swing.JTextField();
        lblProName = new javax.swing.JLabel();
        txtProName = new javax.swing.JTextField();
        lblUnName = new javax.swing.JLabel();
        txtUnName = new javax.swing.JTextField();
        lblProOrder = new javax.swing.JLabel();
        txtProOrder = new javax.swing.JTextField();
        rbtStaProInventory = new javax.swing.JRadioButton();
        rbtStaProPos = new javax.swing.JRadioButton();
        rbtStaProMend = new javax.swing.JRadioButton();
        rbtStaProChang = new javax.swing.JRadioButton();

        setBackground(new java.awt.Color(204, 255, 204));
        setMaximumSize(new java.awt.Dimension(700, 500));
        setMinimumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlHeadEditPro.setBackground(new java.awt.Color(204, 255, 204));
        pnlHeadEditPro.setMinimumSize(new java.awt.Dimension(700, 80));
        pnlHeadEditPro.setPreferredSize(new java.awt.Dimension(700, 80));

        lblHeadEditPro.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblHeadEditPro.setText("รายการสินค้า");

        btnProEditSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/save_30x30.gif"))); // NOI18N

        btnProEditCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N

        btnProEditDel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/del_30x30.gif"))); // NOI18N

        btnProPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/print_30x30.gif"))); // NOI18N
        btnProPrint.setMaximumSize(new java.awt.Dimension(65, 40));
        btnProPrint.setMinimumSize(new java.awt.Dimension(65, 40));
        btnProPrint.setPreferredSize(new java.awt.Dimension(65, 40));

        javax.swing.GroupLayout pnlHeadEditProLayout = new javax.swing.GroupLayout(pnlHeadEditPro);
        pnlHeadEditPro.setLayout(pnlHeadEditProLayout);
        pnlHeadEditProLayout.setHorizontalGroup(
            pnlHeadEditProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadEditProLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlHeadEditProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblHeadEditPro)
                    .addGroup(pnlHeadEditProLayout.createSequentialGroup()
                        .addComponent(btnProEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnProEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnProEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btnProPrint, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(488, Short.MAX_VALUE))
        );
        pnlHeadEditProLayout.setVerticalGroup(
            pnlHeadEditProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlHeadEditProLayout.createSequentialGroup()
                .addGap(10, 10, 10)
                .addComponent(lblHeadEditPro)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlHeadEditProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnProPrint, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnProEditDel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnProEditCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnProEditSave, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        add(pnlHeadEditPro, java.awt.BorderLayout.PAGE_START);

        lblDTCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblDTCode.setText("ประเภทสินค้า :");

        cmbDTCode.setFont(new java.awt.Font("Tahoma", 0, 12));

        txtProExp.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblProExp.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblProExp.setText("วันหมดอายุ :");

        lblSProName.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblSProName.setText("สถานะสินค้า :");

        lblProCode.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblProCode.setText("รหัสสินค้า :");

        txtProCode.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblProPrice.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblProPrice.setText("ราคา/หน่วย :");

        txtProPrice.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblProName.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblProName.setText("ชื่อสินค้า :");

        txtProName.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblUnName.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblUnName.setText("หน่วย :");

        txtUnName.setFont(new java.awt.Font("Tahoma", 0, 12));

        lblProOrder.setFont(new java.awt.Font("Tahoma", 0, 12));
        lblProOrder.setText("จุดสั่งซื้อซ้ำ :");

        txtProOrder.setFont(new java.awt.Font("Tahoma", 0, 12));

        rbtStaProInventory.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        rbtStaProInventory.setText("คลัง");
        rbtStaProInventory.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtStaProInventoryActionPerformed(evt);
            }
        });

        rbtStaProPos.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        rbtStaProPos.setText("หน้าร้าน");
        rbtStaProPos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtStaProPosActionPerformed(evt);
            }
        });

        rbtStaProMend.setFont(new java.awt.Font("Tahoma", 0, 12));
        rbtStaProMend.setText("ซ่อม");
        rbtStaProMend.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtStaProMendActionPerformed(evt);
            }
        });

        rbtStaProChang.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        rbtStaProChang.setText("เครม");
        rbtStaProChang.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                rbtStaProChangActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblDTCode, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblProName, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblUnName, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblProOrder, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(txtProOrder)
                    .addComponent(txtUnName)
                    .addComponent(cmbDTCode, 0, 128, Short.MAX_VALUE)
                    .addComponent(txtProName, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblSProName, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblProExp, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblProPrice, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblProCode, javax.swing.GroupLayout.Alignment.TRAILING))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(txtProPrice)
                                .addComponent(txtProCode, javax.swing.GroupLayout.DEFAULT_SIZE, 147, Short.MAX_VALUE))
                            .addComponent(txtProExp, javax.swing.GroupLayout.DEFAULT_SIZE, 147, Short.MAX_VALUE))
                        .addContainerGap(221, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(rbtStaProInventory)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(rbtStaProPos)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(rbtStaProMend)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(rbtStaProChang)
                        .addContainerGap())))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(cmbDTCode, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblDTCode)
                    .addComponent(lblProCode, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtProCode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblProName)
                    .addComponent(txtProName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblProPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtProPrice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblUnName, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(txtUnName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(lblProExp, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(txtProExp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblProOrder)
                    .addComponent(txtProOrder, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblSProName)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(rbtStaProInventory)
                        .addComponent(rbtStaProPos)
                        .addComponent(rbtStaProMend)
                        .addComponent(rbtStaProChang)))
                .addGap(199, 199, 199))
        );

        add(jPanel1, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void rbtStaProInventoryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtStaProInventoryActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_rbtStaProInventoryActionPerformed

    private void rbtStaProPosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtStaProPosActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_rbtStaProPosActionPerformed

    private void rbtStaProMendActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtStaProMendActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_rbtStaProMendActionPerformed

    private void rbtStaProChangActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_rbtStaProChangActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_rbtStaProChangActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnProEditCancel;
    private javax.swing.JButton btnProEditDel;
    private javax.swing.JButton btnProEditSave;
    private javax.swing.JButton btnProPrint;
    private javax.swing.JComboBox cmbDTCode;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JLabel lblDTCode;
    private javax.swing.JLabel lblHeadEditPro;
    private javax.swing.JLabel lblProCode;
    private javax.swing.JLabel lblProExp;
    private javax.swing.JLabel lblProName;
    private javax.swing.JLabel lblProOrder;
    private javax.swing.JLabel lblProPrice;
    private javax.swing.JLabel lblSProName;
    private javax.swing.JLabel lblUnName;
    private javax.swing.JPanel pnlHeadEditPro;
    private javax.swing.JRadioButton rbtStaProChang;
    private javax.swing.JRadioButton rbtStaProInventory;
    private javax.swing.JRadioButton rbtStaProMend;
    private javax.swing.JRadioButton rbtStaProPos;
    private javax.swing.JTextField txtProCode;
    private javax.swing.JTextField txtProExp;
    private javax.swing.JTextField txtProName;
    private javax.swing.JTextField txtProOrder;
    private javax.swing.JTextField txtProPrice;
    private javax.swing.JTextField txtUnName;
    // End of variables declaration//GEN-END:variables

}
